import { createApp, watch } from 'vue'
import App from './App.vue'
import { createI18n } from 'vue-i18n'
import router from './router'
import store from './store'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import '@/assets/css/index.scss'

const i18n = createI18n({
  legacy: false,
  locale: 'zh_CN',
  globalInjection: true,
  messages: {
    zh_CN: {
      message: {
        HOME: '首页',
        ABOUT_KUPO: '关于库珀',
        INTRODUCE: '公司简介',
        BUSINESS: '业务范畴',
        DEVELOPMENT: '企业发展',
        HONOR: '荣誉资质',
        CULTURE: '企业文化',
        MANAGE: '管理团队',
        TECH: '创新金融',
        FINANCE: '创新金融',
        SUPERVISE: '监管科技',
        SECURITY: '网络安全',
        MEDIA_SOURCE: '媒体资源',
        NEWS: '企业新闻',
        VIEWS: '库珀视角',
        NEWS_DETAIL: '新闻详情',
        CONCACT: '联系我们',
        COOP: '商务合作',
        ADDRESS: '办公地址',
        JOBS: '人才发展',
        JOB_DETAIL: '职业详情',
        KUXINYUN: '库信云',
        KUZHENGTONG: '库证通',
        HUXINYI: '互信易',
        KUDATAX: 'KuDataX'
      }
    },
    en_US: {
      message: {
        HOME: 'Home',
        ABOUT_KUPO: 'About Kupo',
        INTRODUCE: 'Introduce',
        BUSINESS: 'Business',
        DEVELOPMENT: 'Development',
        HONOR: 'Honor',
        CULTURE: 'Culture',
        MANAGE: 'Manage',
        TECH: 'Innovative technology',
        FINANCE: 'Innovative finance',
        SUPERVISE: 'Regulatory technology',
        SECURITY: 'Network security',
        MEDIA_SOURCE: 'Media resources',
        NEWS: 'Corporate News',
        VIEWS: 'Kupo perspective',
        NEWS_DETAIL: 'News detail',
        CONCACT: 'Contact us',
        COOP: 'Business cooperation',
        ADDRESS: 'Office address',
        JOBS: 'Talent development',
        JOB_DETAIL: 'Position Details',
        KUXINYUN: 'Kuxinyun',
        KUZHENGTONG: 'Kuzhengtong',
        HUXINYI: 'Huxinyi',
        KUDATAX: 'KuDataX'
      }
    }
  }
})

createApp(App).use(store).use(router).use(i18n).use(ElementPlus).mount('#app')
